.sc-ruler{
    position: absolute;
    display: flex;
    background-color: #e6e6e6;
    box-sizing: border-box;
    z-index: 100;
    user-select: none;
}

.sc-ruler-top-container{
    display: block;
    position: relative;
    width: 100%;
    height: 24px;
    margin-left: 23px;
    background-color: #e5e5e5;
}

.sc-ruler-left-container{
    display: block;
    position: relative;
    width: 24px;
    height: 100%;
    background-color: #e5e5e5;
}

.sc-ruler.sc-ruler-top{
    position: relative;
    flex-direction: row;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 24px;
    padding: 4px 0px;
    box-sizing: border-box;
    overflow: hidden;
}

.sc-ruler.sc-ruler-left{
    position: relative;
    flex-direction: column;
    left: 0px;
    top: 0px;
    width: 24px;
    height: 100%;
    padding: 0px 4px;
    box-sizing: border-box;
    overflow: hidden;
}

.sc-ruler.sc-ruler-top .sc-ruler-segment{
    height: 100%;
}

.sc-ruler.sc-ruler-left .sc-ruler-segment{
    width: 100%;
    overflow: hidden;
}

.sc-ruler .sc-ruler-cms{
    display: flex;
    height: 100%;
    background-color: #fff;
}

.sc-ruler .sc-ruler-segment.sc-segment-left .sc-ruler-cms,
.sc-ruler .sc-ruler-segment.sc-segment-right .sc-ruler-cms{
    width: 100%;
    background-color: #c6c6c6;
}

.sc-ruler .sc-ruler-segment.sc-segment-center .sc-ruler-cms{
    width: 100%;
}

.sc-ruler.sc-ruler-top .sc-ruler-cms{
    display: inline-block;
    white-space: nowrap;
    width: 100%;
    padding-top: 4px;
    box-sizing: border-box;
}

.sc-ruler.sc-ruler-left .sc-ruler-cms{
    display: inline-block;
    height: 100%;
    padding-left: 4px;
    box-sizing: border-box;
}

.sc-ruler .sc-ruler-cm{
    display: inline-flex;
    box-sizing: border-box;
}

.sc-ruler.sc-ruler-top .sc-ruler-cm{
    flex-direction: row;
    width: 40px;
    height: 8px;
    padding-top: 2px;
    border-right: 1px solid #000;
}

.sc-ruler.sc-ruler-left .sc-ruler-cm{
    display: flex;
    flex-direction: column;
    width: 8px;
    height: 40px;
    padding-left: 2px;
    border-bottom: 1px solid #000;
}

.sc-ruler.sc-ruler-top .sc-ruler-cm-split{
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 20%;
    height: 4px;
    line-height: 4px;
    text-align: center;
    font-size: 9px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: normal;
}

.sc-ruler.sc-ruler-left .sc-ruler-cm-split{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 4px;
    height: 20%;
    text-align: left;
    font-size: 9px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: normal;
}

.sc-ruler.sc-ruler-left .sc-ruler-cm-split>.sc-ruler-cm-title{
    display: block;
    transform: rotate(270deg);
}

.sc-ruler .sc-ruler-slider{
    cursor: default;
    z-index: 10;
}

.sc-ruler .sc-ruler-slider.sc-slider-top,
.sc-ruler .sc-ruler-slider.sc-slider-bottom-left,
.sc-ruler .sc-ruler-slider.sc-slider-bottom-right{
    position: absolute;
    width: 10px;
    height: 10px;
    left: 0px;
    box-sizing: border-box;
}

.sc-ruler .sc-ruler-slider.sc-slider-top{
    top: 0px;
}

.sc-ruler .sc-ruler-slider.sc-slider-bottom-left{
    left: 0px;
    bottom: 0px;
}

.sc-ruler .sc-ruler-slider.sc-slider-bottom-right{
    left: 100px;
    bottom: 0px;
}

.sc-ruler .sc-ruler-slider.sc-slider-left-top,
.sc-ruler .sc-ruler-slider.sc-slider-left-bottom{
    position: absolute;
    width: 24px;
    height: 8px;
    left: 0px;
    top: 0px;
    box-sizing: border-box;
}

.sc-ruler-top-container .sc-ruler-line,
.sc-ruler-left-container .sc-ruler-line{
    position: absolute;
    z-index: 100;
}

.sc-ruler-top-container .sc-ruler-line{
    border-left: 1px dashed #606266;
}

.sc-ruler-left-container .sc-ruler-line{
    border-top: 1px dashed #606266;
}